package com.ma.lucenedemo.service;

import org.apache.lucene.queryparser.classic.ParseException;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface CarService {
    /*
    * 根据数据库信息创建索引库
    * */
    void createIndexKu() throws IOException;

    /*
    * 解析搜索栏关键字进行搜索
    * */
    String parseKey(String keyWord) throws IOException, ParseException;

    /*
    * 上传文件到服务器,批量检索，生成结果
    * */
    void anyParse(MultipartFile multipartFile, HttpServletResponse response) throws IOException, ParseException, InvalidFormatException;

}
